﻿using AccessControl.FingerPrintLibrary.Properties;
using Neurotec.Licensing;


namespace AccessControl.FingerPrintLibrary
{
    public class Licencing
    {
        public static string components = "Biometrics.FingerExtraction,Biometrics.FingerMatching";

        public static bool checkLicence()
        {

            return NLicense.ObtainComponents(Settings.Default.DongleIP, Settings.Default.DonglePort, components);
        }

        public static void ReleaseLicence()
        {
            NLicense.ReleaseComponents(components);
        }
    }
}
